package com.gljx.web.dao;

import com.gljx.web.Entity.SubjectThreeResult;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface SubjectThreeResultMapper {
	int deleteByPrimaryKey(String fid);

	int insert(SubjectThreeResult record);

	int insertSelective(SubjectThreeResult record);

	SubjectThreeResult selectByPrimaryKey(String fid);

	int updateByPrimaryKeySelective(SubjectThreeResult record);

	int updateByPrimaryKey(SubjectThreeResult record);

	/**
	 * 查找最大编码
	 * @return
	 */
	String selectFnumber(String companyId);

	/**
	 * 根据fid查找科目二考试结果登记信息
	 * @param fid
	 * @return
	 */
	SubjectThreeResult selectSubjectThreeResultByFid(String fid);

	/**
	 * 提交单据
	 * @param subjectThreeResult
	 * @return
	 */
	int submitSubjectThreeResult(SubjectThreeResult subjectThreeResult);

	List<SubjectThreeResult> selectSubjectThreeResult(Map map);
}